<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var grade;
        // prompt()用于弹出一个文本框，用户可以输入内容，最终会返回内容
        grade = prompt("请输入你的成绩：");
        alert(grade);
    </script>
</head>
<body>
    
</body>
</html>